package com.crm.model.mdao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.crm.model.mpojo.Outgood;

@Mapper
public interface OutgoodMapper {
    int deleteByPrimaryKey(Integer ogId);

    int insert(Outgood record);

    int insertSelective(Outgood record);

    Outgood selectByPrimaryKey(Integer ogId);

    int updateByPrimaryKeySelective(Outgood record);

    int updateByPrimaryKey(Outgood record);
    /**
     * 发货单数据
     * @param ogId
     * @return
     */
    Map<String, String> selectByogview(Integer ogId);
    
    /**
     * 订单ID查询发货单数据
     * @param oId
     * @return
     */
    List<Map<String, String>> selectByoId(Integer oId);
    
    
    List<Map<String, String>> selectAlls(@Param("ogType")Integer ogType,@Param("theme")String theme);
}